<%@ page pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="/common/taglibs.jsp"%>
<head>
<title><s:text name="webapp.name" /></title>
<%@ include file="/common/meta.jsp"%>
<script language="javascript"  type="text/javascript" >
    function view(objID)
    {
		//alert(document.all("chk").checked);
		if(document.all("chk"+objID).checked==true)
		{
			document.all("ct"+objID).style.display = "block";
		}
		else
		{
			document.all("ct"+objID).style.display = "none";
		}
    }
    var intValue=1;
    function seltype(objValue)
    {
		//alert(objValue);
		document.all("tbd_"+intValue).style.display="none";
		document.all("tbd_"+objValue).style.display="block";
		intValue = objValue;
    }
	function addProduct(value)
	{
		if(value==1)
		{
			document.getElementById("btnAddCp01").style.display="none";
			document.getElementById("cp01").style.display="block";
		}
		 if(value==2)
		{
			document.getElementById("btnAddCp02").style.display="none";
			document.getElementById("cp02").style.display="block";
		}
	}
	function changeff()
	{
		var v = document.getElementById("csffselect").value;
		if(v==1)
		{
			document.getElementById("cptr").style.display="block";
		}
	}
	</script>
</head>
<body> 
	<s:form action="sjcjbmx_save" method="post" validate="false" theme="simple">
		<%@ include file="/common/header.jsp"%>  
		<table class="ow_fim_mg" cellspacing="1" cellpadding="3">  
		    <tr> 
				<td class="ow_fim_l" >采集时间</td>
				<td class="ow_fim_r" colspan="2">
                 <input type="text" class="calendar" value="" id="Text2" name="Text1" /></td>
			</tr>
            <tr> 
				<td class="ow_fim_l">测算方法</td>
				<td class="ow_fim_r" colspan="3">
                <select class="com_select" onchange="changeff()" style="width:85px;" id="csffselect" name="seltype" >
                    <option value="0" selected="selected"></option>
					<option value="1" >电耗法</option>
					<option value="2">投入产出法</option> 
				</select></td> 
		    </tr>
		    <tr id="cptr" style="display:none;">
				<td class="ow_fim_l">
					产品<br /><br />
                   </td>
				<td class="ow_fim_r" valign="top" width="*">
	                <table class="ow_fim_mg">
						<tr>
							<td class="ow_fim_l">
								<s:text name="sjcjbmx.cpzl" />
							</td>
							<td class="ow_fim_r"> 
								<s:select list="cpzlList" listKey="id" listValue="name" ></s:select> 
							</td>   
							<td class="ow_fim_l">
								<s:text name="sjcjbmx.ylpw" />
							</td>
							<td class="ow_fim_r">
								<s:select list="ylpwList" listKey="id" listValue="name"></s:select> 
							</td> 
							<td class="ow_fim_l">
								<s:text name="sjcjbmx.yf" />
							</td>
							<td class="ow_fim_r">
								<s:textfield name="sjcjbmx.yf" /> 
							</td> 
							<td class="ow_fim_l">
								<s:text name="sjcjbmx.hdl" />
							</td>
							<td class="ow_fim_r">
								<s:textfield name="sjcjbmx.hdl" />  
							</td> 
							<td class="ow_fim_l">
								<s:text name="sjcjbmx.cpqckc" />
							</td>
							<td class="ow_fim_r">
								 <s:textfield name="sjcjbmx.cpqckc" />
							</td>
						</tr>  
			            <tr>
							<td class="ow_fim_l">
								<s:text name="sjcjbmx.cpqmkc" />
							</td>
							<td class="ow_fim_r">
								<s:textfield name="sjcjbmx.cpqmkc" /> 
							</td> 
							<td class="ow_fim_l">
								<s:text name="sjcjbmx.bccpcl" />
							</td>
							<td class="ow_fim_r">
								 <s:textfield name="sjcjbmx.bccpcl" />
							</td> 
							<td class="ow_fim_l">
								<s:text name="sjcjbmx.cppjxsjg" />
							</td>
							<td class="ow_fim_r">
								 <s:textfield name="sjcjbmx.cppjxsjg" />
							</td> 
							<td class="ow_fim_l">
								<s:text name="sjcjbmx.bccpxl" />
							</td>
							<td class="ow_fim_r">
								 <s:textfield name="sjcjbmx.bccpxl" />
							</td>
							<td class="ow_fim_l" colspan="2">
								<input type="button" value="继续添加产品" id="btnAddCp01"  onclick="addProduct(1)" /> 
							</td>
						</tr>  
					</table>
				</td>
		   </tr>
		</table> 
		<table width="*" align="right">
			<tr>
				<td class="rtm_shb_r"> 
				    <s:submit action="sjcjbmx_save" key="button.save"></s:submit>
					<s:submit action="sjcjbmx_list" key="button.modify" onclick="form.onsubmit=null"></s:submit> 
				</td> 
			</tr>
		</table>
		<%@ include file="/common/footer.jsp"%>
	</s:form>
</body>
</html>